﻿using System;

namespace AssemblerCompiler
{
    public class SymTabElement
    {
        public enum SymType
        {
            Label,
            Pointer,
            Procedure
        }

        private readonly UInt16 address;
        private readonly string name;
        private readonly SymType type;

        public SymTabElement(string name, UInt16 address, SymType type)
        {
            this.name = name;
            this.address = address;
            this.type = type;
        }

        public string Name
        {
            get
            {
                return this.name;
            }
        }

        public UInt16 Address
        {
            get
            {
                return this.address;
            }
        }

        public SymType Type
        {
            get
            {
                return this.type;
            }
        }
    }
}